SftTree/NET 2.0

HorizontalExtentRight Property, SftTree Class

Softel vdm, Inc.

Defines the current horizontal scrolling extent in the right pane.

Syntax      SftTree Class (Softelvdm.SftTreeNET)

VB   

Public Property HorizontalExtentRight As Integer

C#   

public int HorizontalExtentRight { get; set; }

C++   

public: property int HorizontalExtentRight {
        int get();
        void set(int value);
}

Property Value

Defines the current horizontal scrolling extent. If this value is 0 (or less than the width of the right pane), horizontal scrolling is disabled.

The default value is 0.

Comments

The HorizontalExtentRight property defines the current horizontal scrolling extent in the right pane.

A tree control's displayable area can be wider than the tree control's window width. If the displayable area is wider, the tree control can be scrolled horizontally if it has a horizontal scroll bar (ScrollbarHorizontal property). The width of the displayable area can be set by the application using the RecalcHorizontalExtent method or the HorizontalExtentRight property. For performance reasons, the optimal width is not automatically calculated when adding items to a tree control.

The HorizontalExtent property defines the horizontal extent of the displayable area (or the left pane of a split tree control).

The HorizontalExtentRight property defines the horizontal extent of the displayable area in the right pane of a split tree control. The HorizontalExtentRight property can only be used with a split tree control.

If the defined horizontal extent is smaller than the actual window width, the control cannot be scrolled horizontally. The horizontal scroll bar will be disabled or hidden, based on the ScrollbarHorizontal property.

By default, a tree control does not handle horizontal scrolling, even if the ScrollbarHorizontal property defines scroll bars to be available. To start horizontal scrolling, an application has to use the ColumnClass.MakeOptimal and RecalcHorizontalExtent methods or the HorizontalExtentRight property. They indicate to the tree control that horizontal scrolling support is desired and allows it to determine the horizontal scrolling extent.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com